package com.tiger.cloud.enums;


import com.tiger.cloud.common.mybatis.handler.CodeEnum;

public enum UserActiveCountEnum implements CodeEnum<UserActiveCountEnum> {
    android_type(1,"安卓端"),ios_type(2,"IOS客户端"),page_type(3,"H5页面");
    private int code;
    private String desc;
    /**
     * 通过枚举<code>name</code>获取枚举
     */
    public static UserActiveCountEnum getEnumByCode(Integer code) {
        if (code == null) {
            return null;
        }
        for (UserActiveCountEnum enumm : UserActiveCountEnum.values()) {
            if (enumm.getCode() == code.intValue()) {
                return enumm;
            }
        }
        return null;
    }
    private UserActiveCountEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
